package com.googlecode.antilopebpm.variable.converter;

import com.googlecode.antilopebpm.variable.VariableConverter;


public class FloatToStringConverter implements VariableConverter {

	private static final long serialVersionUID = 1L;

	public boolean supports(Object value) {
		if (value == null)
			return true;
		return (value.getClass() == Float.class);
	}

	public Object convert(Object o) {
		return o.toString();
	}

	public Object revert(Object o) {
		return new Float((String) o);
	}

}
